<template>
	<view class="content">
		<view class="success">
			<icon class="icon-check"></icon>
			<text>预定成功</text>
			<p><em @click="navigateto('../order/order')">查看订单</em><em @click="switchtab('../index/index')">返回首页</em></p>
		</view>
		<!-- <view class="goods">
			<view class="title">
				热门推荐
			</view>
			<view class="list">
				<dl @click="navigateto('../details/details')">
					<dt><image src="../../static/img/1.jpg"></image></dt>
					<dd>
						<h2>麻醉深度多参数监护仪</h2>
						<span>适用型号：9F-1A/9F-2/9F-3BW</span>
					</dd>
				</dl>
				<dl @click="navigateto('../details/details')">
					<dt><image src="../../static/img/2.jpg"></image></dt>
					<dd>
						<h2>震动排痰机</h2>
						<span>适用型号：9F-1A/9F-2/9F-3BW</span>
					</dd>
				</dl>
				<dl @click="navigateto('../details/details')">
					<dt><image src="../../static/img/3.jpg"></image></dt>
					<dd>
						<h2>组织氧饱和度监护仪</h2>
						<span>适用型号：9F-1A/9F-2/9F-3BW</span>
					</dd>
				</dl>
				<dl @click="navigateto('../details/details')">
					<dt><image src="../../static/img/4.jpg"></image></dt>
					<dd>
						<h2>中耳仪</h2>
						<span>适用型号：9F-1A/9F-2/9F-3BW</span>
					</dd>
				</dl>
			</view>
		</view> -->
	</view>
</template>

<script>
	export default {
		data() {
			return {
				
			}
		},
		onLoad() {

		},
		methods: {
			switchtab(url) {
				wx.switchTab({
					url: url
				})
			},
			navigateto(url) {
				wx.navigateTo({
					url: url
				})
			}
		}
	}
</script>

<style lang="scss">
	
	page {
		background: #fff;
	}
	
	.success {
		display: flex;
		align-items: center;
		flex-direction: column;
		padding: 120rpx 0;
		font-size: 28rpx;
		.icon-check {
			width: 100rpx;
			height: 100rpx;
			display: flex;
			align-items: center;
			justify-content: center;
			border-radius: 100%;
			font-size: 58rpx;
			background: #dc261b;
			color: #fff;
		}
		text {
			color: #dc261b;
			font-size: 32rpx;
			font-weight: bold;
			margin: 20rpx 0 0;
		}
		p {
			display: flex;
			margin: 50rpx 0 0;
			color: #666;
			em {
				padding: 0 80rpx;
				border-right: 2rpx solid #d8d8d8;
				&:last-of-type {
					border-right: none;
				}
			}
		}
	}
	
	.goods {
		padding-bottom: calc(env(safe-area-inset-bottom));
		.title {
			height: 100rpx;
			display: flex;
			align-items: center;
			padding: 0 40rpx;
			&:before, &:after {
				content: '';
				height: 2rpx;
				background: #d8d8d8;
				flex: 1;
				margin: 0 20rpx;
			}
		}
		.list {
			display: flex;
			justify-content: space-between;
			flex-wrap: wrap;
			padding: 0 20rpx 18rpx;
			dl {
				width: 350rpx;
				background: #fff;
				border-radius: 10rpx;
				overflow: hidden;
				margin-bottom: 12rpx;
				dt {
					image {
						width: 350rpx;
						height: 350rpx;
					}
				}
				dd {
					padding: 20rpx;
					h2, span {
						font-size: 28rpx;
						overflow: hidden;
						text-overflow: ellipsis;
						display: -webkit-box;
						-webkit-line-clamp: 1;
						-webkit-box-orient: vertical;
					}
					span {
						color: #999;
						margin: 8rpx 0 0;
						font-size: 24rpx;
					}
				}
			}
		}
	}
	
</style>
